<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
</head>
<body>
<form name="t">
    <input name='id'>
</form>
<script>
    alert(document.getElementById('t'));
</script>
</body>
</html>